﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ControlAccessUser.Presenter;

namespace ControlAccessUser.Tests
{
    class MockReportsOfLoginsView: IReportsOfLoginsView
    {

        #region
        public Model.User User
        {
            get;
            set;
        }

        public string FilterType
        {
            get;
            set;
        }

        public DateTime DateTimeInit
        {
            get;
            set;
        }

        public DateTime DateTimeEnd
        {
            get;
            set;
        }

        public ICollection<Model.ItemReport> Logins
        {
            get;
            set;
        }
        #endregion

        public void SetReportOfLoginBySession(Model.User User)
        {
            this.User = User;
            FilterType = "SESION";
            DateTimeInit = DateTime.Now.AddMonths(-3);
            DateTimeEnd = DateTime.Now.AddMonths(4);
        }

        public void SetReportOfLoginByWeek(Model.User User)
        {
            this.User = User;
            FilterType = "SEMANA";
            DateTimeInit = DateTime.Now.AddDays(-10);
            DateTimeEnd = DateTime.Now.AddDays(15);
        }


        public void SetReportOfLoginByMonth(Model.User User)
        {
            this.User = User;
            FilterType = "MES";
            DateTimeInit = DateTime.Now.AddDays(-10);
            DateTimeEnd = DateTime.Now.AddMonths(2);
        }
    }
}
